import axios from '@/axios';

export function fetchNotices(params) {
    return axios.post('/notices/list', params);
}

export function createNotice(data) {
    return axios.post('/notices/create', data);
}

export function updateNotice(id, data) {
    return axios.put(`/notices/update/${id}`, data);
}

export function deleteNotice(id) {
    return axios.delete(`/notices/delete/${id}`);
}